<%--
   taggle
   Copyright (c) 2013 ISPERP
   Version : 1.0.0
 --%>
<%@ tag language="java" pageEncoding="UTF-8"
	deferredSyntaxAllowedAsLiteral="false" trimDirectiveWhitespaces="true"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ attribute name="id" required="true" type="java.lang.String"
	description="唯一标识."%>

<%@ attribute name="title" required="true" type="java.lang.String"
	description="标题"%>

<%@ attribute name="showFilterBar" type="java.lang.Boolean"
	description="是否显示按钮，默认true."%>

<%@ attribute name="togCallback" required="true" type="java.lang.String"
	description="回调函数"%>


<div class="box">
	<div class="header">
		<h2 style="text-align: left">${title}</h2>
	</div>
	<div id="${id}" class="toggleFilter"></div>
	<div style="display:none">
		<jsp:doBody /></div>
</div>

<c:set var="showFilterBar" value="${showFilterBar eq false ? false : true}">
</c:set>



<script type="text/javascript">
	$("#${id}").toggleFilter({
		callback : function() {
			${togCallback}
		}
	});
</script>



